<%--
    Document   : addToList
    Author     : Thomas
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="addBookToCartBean" class="beans_pkg.addBookToCartBean" scope="page"/>
<jsp:setProperty name="addBookToCartBean" property="*"/>

<%
    if(session.getAttribute("list") == null){
        session.setAttribute("list", "");
    }
    String list = (String) session.getAttribute("list");
    list += addBookToCartBean.getISBN().toString() + ",";
    session.setAttribute("list", list);

    String redirectURL = (String) session.getAttribute("currentPage");
    response.sendRedirect(redirectURL);
%>
